04db8bab40de6044ccdb89f7aef2a290825f031b,src/main/java/synapticloop/b2/response/B2FinishLargeFileResponse.java,B2FinishLargeFileResponse,B2FinishLargeFileResponse,#String#,43
Before Change
this.contentType = this.readString(B2ResponseProperties.KEY_CONTENT_TYPE);
this.contentSha1 = this.readString(B2ResponseProperties.KEY_CONTENT_SHA1);
this.fileInfo = new HashMap<String, String>();
JSONObject fileInfoObject = this.readObject(B2ResponseProperties.KEY_FILE_INFO);
if(null != fileInfoObject) {
for (String key: fileInfoObject.keySet().toArray(new String[fileInfoObject.keySet().size()])) {
fileInfo.put(key, this.readString(fileInfoObject, key));
}
}
String action = this.readString(B2ResponseProperties.KEY_ACTION);
After Change
this.contentLength = this.readLong(B2ResponseProperties.KEY_CONTENT_LENGTH);
this.contentType = this.readString(B2ResponseProperties.KEY_CONTENT_TYPE);
this.contentSha1 = this.readString(B2ResponseProperties.KEY_CONTENT_SHA1);
this.fileInfo = this.readMap(B2ResponseProperties.KEY_FILE_INFO);
String action = this.readString(B2ResponseProperties.KEY_ACTION);
if(null != action) {
this.action = Action.valueOf(action);